﻿using StackExchange.Redis;
using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            ConfigurationOptions options = ConfigurationOptions.Parse("192.168.190.130:6401");
            ConnectionMultiplexer connect = ConnectionMultiplexer.Connect(options);
            IDatabase database = connect.GetDatabase(0);



            for (int i = 0; i < 100000; i++)
            {
                string userKey = "User:" + Guid.NewGuid().ToString();
                string value = DateTime.Now.ToString("yyyy-MM-dd:HH:mm:ss") + Guid.NewGuid().ToString();
                database.StringSet(userKey, value);
                Console.WriteLine(userKey + "-----" + value);
            }



            Console.WriteLine("Hello World!");
        }
    }
}
